prevent assertion failures in nmea reader (#1332)
authortsteven4 <13596209+tsteven4@users.noreply.github.com>
Fri, 30 Aug 2024 22:31:11 +0000 (16:31 -0600)
committerGitHub <noreply@github.com>
Fri, 30 Aug 2024 22:31:11 +0000 (16:31 -0600)
commitcc2803d5ab3c5307b0cccd901b8d1a8fa479901e
treea956ee5fa04e60fb8d2a7cace3ee727df1d8096f
parent5a08554b7b57802ed6f7870df6bb0ddc43c97e8f
prevent assertion failures in nmea reader (#1332)

* replace all empty nmea fields with 0.

including adjacent empty fileds, i.e. ",,," -> ",0,0,".

* defend against indexing past end of arrays.

prevents assertion failures in qstring.h operator[].

also consistently default longitude direction.
nmea.cc